-- GENERATED SPELL FOR [Gobbler] --


function spell0_1259(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(12097,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1259', 20300, 1)
end

function Sorts_1259(pUnit, Event)
local choix_sorts_1259 = math.random(0, 0)
if choix_sorts_1259 == 0 then
pUnit:RegisterEvent('spell0_1259', 1, 1)
end
end

function mob1259_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1259', math.random(1500, 3000), 1)
end

function mob1259_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1259_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1259_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1259, 1, 'mob1259_Action')
RegisterUnitEvent(1259, 2, 'mob1259_Leave')
RegisterUnitEvent(1259, 3, 'mob1259_Kill')
RegisterUnitEvent(1259, 4, 'mob1259_Die')
